﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class channel
    {
		public string id=null;
		public string type_id=null;
		public string site_id=null;
		public string name=null;
		public string title=null;
		public string sort_id=null;
		public string seo_folder=null;
        public string __name__;
        public channel(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.type_id = string.Format("{0}.type_id",__name__);
			this.site_id = string.Format("{0}.site_id",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.title = string.Format("{0}.title",__name__);
			this.sort_id = string.Format("{0}.sort_id",__name__);
			this.seo_folder = string.Format("{0}.seo_folder",__name__);
        }
        public channel()
        {
			this.id = string.Format("{0}.id",__name__);
			this.type_id = string.Format("{0}.type_id",__name__);
			this.site_id = string.Format("{0}.site_id",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.title = string.Format("{0}.title",__name__);
			this.sort_id = string.Format("{0}.sort_id",__name__);
			this.seo_folder = string.Format("{0}.seo_folder",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "channel";
            }
            else
            {
                return string.Format("channel as {0}",__name__);
            }
        }
    }
}